<template>
    <div class="store-container">
        <div class="header-store">
            <HeaderTitle title="店铺信息"></HeaderTitle>
            <div class="store-info">
                <div class="store-title-box">
                    <div class="store-text-box">
                        <div class="title">
                            意大利特火小面条馆意大利特火小面条馆意大利特火小面条馆意大利特火小面条馆意大利特火小面条馆意大利特火小面条馆意大利特火小面条馆意大利特火小面条馆
                        </div>
                        <div class="subtitle">
                            生活总是有很多的失败，就好比游戏的....
                        </div>
                    </div>
                    <img src="../assets/img/store-img.png" alt="">
                </div>
                <div class="store-notice">
                    <img src="../assets/img/icon-horn.png" alt="" srcset="">
                    <div>公告：失败了，就失败了，爬起来总结一下再继续</div>
                </div>
            </div>
        </div>
        <div class="store-navigation">
            <div class="avtive">点餐</div>
            <div>评价</div>
            <div>商家</div>
        </div>

        <div class="shop-cart">
            <div class="shop-capsule">
                <img class="shop-cart-img" src="../assets/img/shop-cart-gray.png" alt="" srcset="" onclick="show()">
                <div>

                </div>
            </div>
        </div>
    </div>
</template>

<script>
import HeaderTitle from './common/HeaderTitle.vue'

export default {
    name: 'Store',
    components: {
        HeaderTitle
    }
}
</script>

<style lang="less" scoped>
/* 店铺头部布局 */
.header-store {
    width: 10rem;
    background-image: url("../assets/img/store-bg.png");
    background-size: 100%;
    background-repeat: no-repeat;
    background-position: 0 -1.1733rem;
}

/* 店铺信息布局 */
.header-store .store-info {
    background: #fff;
    width: 9.1467rem;
    height: 2.8267rem;
    border-radius: .2133rem;
    margin: .5067rem auto;
    box-shadow: 0rem .1067rem .2133rem 0rem rgba(37, 136, 255, 0.06);
    font-size: .32rem;
}

.header-store .store-info>div:first-child {
    display: flex;
    justify-content: space-between;
    padding: .3467rem .4rem 0rem .3733rem;
}

.header-store .store-info .store-text-box .title {
    width: 6.4rem;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    font-size: .48rem;
    font-weight: 700;
    line-height: .6949rem;
    color: rgba(0, 0, 0, 1);
}

.header-store .store-info .store-text-box .subtitle {
    width: 6.4rem;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    font-weight: 500;
    letter-spacing: 0px;
    line-height: .4635rem;
    color: rgba(144, 152, 160, 1);
}

.header-store .store-info .store-title-box img {
    display: block;
    width: 1.6rem;
    height: 1.6rem;
}

.header-store .store-info .store-notice {
    display: flex;
    color: rgba(144, 152, 160, 1);
    align-items: center;
    margin-top: .1067rem;
}

.header-store .store-info .store-notice img {
    display: block;
    width: .3733rem;
    height: .3421rem;
    margin-left: .3733rem;
}

.header-store .store-info .store-notice>div {
    width: 7.04rem;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    margin-left: .16rem;
    height: .4533rem;
    line-height: .4635rem;
}

// 店铺导航
.store-navigation {
    width: 9.1467rem;
    margin-left: auto;
    margin-right: auto;
    margin-top: .7467rem;
    margin-bottom: .5333rem;
    display: flex;

    .avtive {
        border-bottom: .08rem solid rgba(37, 136, 255, 1);
    }

    div {
        font-size: .4267rem;
        font-weight: 500;
        letter-spacing: 0rem;
        line-height: .6179rem;
        color: rgba(46, 52, 58, 1);
        margin-right: 1.1733rem;
    }
}

/* 购物车 */
.shop-cart {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 1.3333rem;
    z-index: 12;
}

.shop-cart .shop-capsule {
    width: 9.04rem;
    height: 1.3067rem;
    background: rgba(58, 54, 53, 1);
    border-radius: 1.3067rem;
    position: relative;
    margin: 0 auto;
}

.shop-cart .shop-capsule .shop-cart-img {
    position: absolute;
    display: block;
    width: 1.1832rem;
    height: 1.5597rem;
    left: 0px;
    top: -0.24rem;
}
</style>
